﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using POSSystem.BLL;

namespace WebUI.Controls
{
    public partial class EditCategoryCtrl : BaseEditControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Branches.CurrentBranch.IsHeadQuarter)
            {
                lblShowOnWeb.Visible = false;
                chkDealerOnly.Visible = false;
                lblDealerOnly.Visible = false;
                chkVisible.Visible = false;
            }
        }

        public String CategoryName
        {
            get { return txtName.Text; }
            set { txtName.Text = value; }
        }

        public bool VisibleToCustomer
        {
            get { return chkVisible.Checked; }
            set { chkVisible.Checked = value; }
        }

        public bool IsDealerOnly
        {
            get { return chkDealerOnly.Checked; }
            set { chkDealerOnly.Checked = value; }
        }
    }
}